const path = require('path')
module.exports = {
	configureWebpack: {
		resolve: {
			extensions: ['.js', '.json', '.vue'],
			alias: {
				'@': path.resolve(__dirname, './src'),
				'@v': path.resolve(__dirname, './src/views'),
				'@c': path.resolve(__dirname, './src/components'),
			},
		},
	},
	css: {
		sourceMap: false,
		loaderOptions: {
			less: {
				javascriptEnabled: true,
			},
			sass: {
				prependData: `@import "./src/assets/css/main.scss";`,
			},
		},
		requireModuleExtension: true,
	},
	devServer: {
		open: false,
		host: '0.0.0.0',
		port: 8080,
		https: false,
		hot: true,
		hotOnly: false,
	},
}
